00001 <?php 00002 /*--------------------------------------------------------------------------+ 00003 This file is part of eStudy. 00004 admin/index.php 00005 - Modulgruppe: File Manager 00006 - Beschreibung: Neuer, revolutionaerer File Manager 00007 - Version: 0.1, 09/10/04 00008 - Autor(en): Thorsten Buss <admin@drstone.de>, 00009 +---------------------------------------------------------------------------+ 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or any later version. 00014 +---------------------------------------------------------------------------+ 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 +--------------------------------------------------------------------------*/ 00030 define("PATH_TO_ROOT", "../"); 00032 require_once (PATH_TO_ROOT."common/init.inc.php"); 00033 00034 require_once (PATH_TO_ROOT."calendar/classes/class.template.inc.php"); 00035 00037 include_once ("./classes/class.filemanger.inc.php"); 00038 $filemanager = new Filemanager(); 00039 00040 00041 $HEADER_INLINE_AFTER_CSS='<link href="'.PATH_TO_ROOT. 'ressourcen/templates/css/filemanager.css" rel="stylesheet" type="text/css" />'; 00043 require_once (PATH_TO_ROOT."common/header.inc.php"); 00044 // #################################################### Ausgabe der Ressourcen 00045 if ($_SESSION['course'] == 0) $courseStr = "Portal"; 00046 else $courseStr = $db->get_var("SELECT name FROM courses WHERE ID=".$_SESSION['course']); 00047 00048 echo "<div class='contentTable'>"; 00049 echo "<div class='tableHead'>Ressourcenstatistik - ".$courseStr."</div>"; 00050 echo "<div class='res_frame-tree'>"; 00051 $filemanager->showTree(); 00052 00053 echo "</div><div class='res_frame-file'>"; 00054 if (isset($_GET['activeFolder'])) $filemanager->showFiles( true ); 00055 echo "</div> 00056 </div>"; 00057 00059 require_once (PATH_TO_ROOT."common/footer.inc.php"); 00060 ?>
1.6.1